class Counter {
    constructor() {
        this.count = 0;
    }

    increment() {
        this.count++;
    }

    tally() {
        return this.count;
    }

    toString() {
        return this.count.toString();
    }
}

module.exports = Counter;